package com.tianma315.admin.echarts.service.impl;

import com.tianma315.admin.common.base.CoreServiceImpl;
import com.tianma315.admin.echarts.dao.EchartsDao;
import com.tianma315.admin.echarts.domain.EchartsVo;
import com.tianma315.admin.echarts.service.EchartsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EchartsServiceImpl  implements EchartsService {
    @Resource
    private EchartsDao echartsDao;

    @Override
    public List<EchartsVo> selectOrderCountByYear(String year) {
        return echartsDao.selectOrderCountByYear(year);
    }

    @Override
    public List<EchartsVo> selectOrderCountByMonth(String year, String month) {
        return echartsDao.selectOrderCountByMonth(year,month);
    }

    @Override
    public List<EchartsVo> selectOrderAmountByYear(String year) {
        return echartsDao.selectOrderAmountByYear(year);
    }

    @Override
    public List<EchartsVo> selectOrderAmountByMonth(String year, String month) {
        return echartsDao.selectOrderAmountByMonth(year,month);
    }

    @Override
    public List<EchartsVo> selectAgentAreaCount() {
        return echartsDao.selectAgentAreaCount();
    }

}